package jp.co.sn.mml.pojo.tsttkjdhkcmt;


public class TsttkjdhkcmtId implements java.io.Serializable { 

	//検査群
	private String ksKbn;
	//菌コード
	private String kinCd;

	/** default constructor */
	public TsttkjdhkcmtId(){

	}

	/** full constructor */
	public TsttkjdhkcmtId(String ksKbn,String kinCd){
		this.ksKbn = ksKbn;
		this.kinCd = kinCd;
	}

	//Property accessors
	public String getKsKbn(){
		return this.ksKbn;
	}

	public void setKsKbn(String ksKbn){
		this.ksKbn=ksKbn;
	}

	public String getKinCd(){
		return this.kinCd;
	}

	public void setKinCd(String kinCd){
		this.kinCd=kinCd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TsttkjdhkcmtId))
			return false;

		TsttkjdhkcmtId castOther = (TsttkjdhkcmtId) other;

		return ((this.getKsKbn() ==  castOther.getKsKbn())
				||(this.getKsKbn()!=null && castOther.getKsKbn() !=null 
					&& castOther.getKsKbn() !=null 
					&& this.getKsKbn().equals(castOther.getKsKbn())))
			&& ((this.getKinCd() ==  castOther.getKinCd())
				||(this.getKinCd()!=null && castOther.getKinCd() !=null 
					&& castOther.getKinCd() !=null 
					&& this.getKinCd().equals(castOther.getKinCd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKsKbn() == null ? 0 : this.getKsKbn().hashCode());
		result = 37 * result
				+ (getKinCd() == null ? 0 : this.getKinCd().hashCode());
		return result;
	}

}